#include <iostream>
#include <vector>
#include <string>
#include <list>

using namespace std;

void test(){
    list<const char *> lst = {"hello","xww","patience"};
    vector<string> vec;

    for(auto &ele:lst){
        vec.push_back(string(ele));
    }
    for(auto & v:vec){
        cout << v << " ";
    }
    cout << endl;
}

int main()
{
    test();
    return 0;
}

